package com.wtwd.campus.hxy.dao;

import com.wtwd.campus.hxy.entity.CommandRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ljiong
 * @date 2021/07/27
 * @description
 */
@Mapper
public interface HxyCommandRecordMapper {

    List<CommandRecord> getDeviceCommandByDeviceIdAndStartListAndCommandType(@Param("imei") String imei,@Param("list") ArrayList<Integer> startsList,@Param("commandType") String commandType);

    Integer updateDeviceCommandStartByCommandNumberListAndCommandType(@Param("imei") String imei, @Param("list") List<String> commandNumbers,@Param("commandType") String commandType, @Param("state") int state);
}
